import { makeAutoObservable } from "mobx";
import { http } from "../utils";

class ChannelStore {
  channelList = [];
  constructor() {
    makeAutoObservable(this);
  }

  loadChannelList = () => {
    http.get("/channels").then((res) => {
      console.log(res);
      this.channelList = res.data.data.channels;
    });
  };
}

export default ChannelStore;
